<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/8/23
 * Time: 10:18
 */

use yii\widgets\ActiveForm;
?>
<?php $form = ActiveForm::begin(['enableAjaxValidation' => true, 'enableClientValidation' => false,'options'=>['class'=>'form-validate']]); ?>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['reason']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?=$model->reason ?>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['status']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <td style="display: inline-block;width: 206px"><?= $form->field($model, 'status', ['template' => '{input}{error}{hint}'])->widget(\kartik\select2\Select2::className(),['data'=>$items,'options' => ['placeholder' => '请选择']]) ?></td>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['remark']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?= $form->field($model, 'remark', ['template' => '{input}{error}{hint}'])->textarea(['rows' => 2, 'style' => 'width:90%;height:80px', 'class' => 'input-textarea']) ?>
    </div>
</div>
<div style="display: none"><button type="submit" id="dosubmit">提交</button></div>
<?php ActiveForm::end();?>

